﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO;

using MLopez.BizVal.CW.Base;
using MLopez.BizVal.CW.XML;

namespace MLopez.BizVal.GUI.Biz
{
    public class JerarquiaBiz
    {

        public static Jerarquia GetJerarquiaFromXml()
        {
            Jerarquia retVal = null;
            OpenFileDialog dlg = new OpenFileDialog();
            dlg.Multiselect = false;
            dlg.Filter = "Archivos XML|*.xml";

            if (dlg.ShowDialog() == true)
            {
                retVal = XMLParser.DeseralizeJerarquia(dlg.File);
            }
            return retVal;
        }
    }
}
